<?php
define('ROOT_DIR', str_replace('\\', '/', realpath(dirname(__FILE__))));
define('APP_PATH', ROOT_DIR.'/applications');
define('ROOT_LIB', ROOT_DIR.'/library');
defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'development');

set_include_path(implode(PATH_SEPARATOR, array(
	ROOT_LIB,
	APP_PATH.'/models',
//	get_include_path()
)));

require_once APP_PATH.'/configs/constants.php';
require_once 'Zend/Application.php';

$application = new Zend_Application(
	APPLICATION_ENV,
	APP_PATH.'/configs/config.ini'
);

$application->bootstrap()->run();
